#ifndef OTA_HANDLER_H
#define OTA_HANDLER_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>

// Function to handle OTA requests
void handle_ota_request(int client_socket, const char *target_ip);

// Function to start the OTA process
int start_ota(const char *target_ip);

#endif // OTA_HANDLER_H